{% extends 'base.html' %}

{% block content %}
<div class="container mt-4">
    <h2>订单支付</h2>
    <div class="card mb-4">
        <div class="card-body">
            <h5 class="card-title">订单信息</h5>
            <p>订单号：{{ order.order_number }}</p>
            <p>支付金额：¥{{ order.total_amount }}</p>
        </div>
    </div>

    <div class="card">
        <div class="card-body">
            <h5 class="card-title">选择支付方式</h5>
            <form method="post">
                {% csrf_token %}
                <div class="mb-3">
                    <div class="form-check">
                        <input class="form-check-input" type="radio" name="payment_method" id="alipay" value="alipay" checked>
                        <label class="form-check-label" for="alipay">
                            支付宝
                        </label>
                    </div>
                    <div class="form-check">
                        <input class="form-check-input" type="radio" name="payment_method" id="wechat" value="wechat">
                        <label class="form-check-label" for="wechat">
                            微信支付
                        </label>
                    </div>
                </div>
                <button type="submit" class="btn btn-primary">确认支付</button>
            </form>
        </div>
    </div>
</div>
{% endblock %}